package cn.smbms.service;

import cn.smbms.dao.RainManageMapper;
import cn.smbms.pojo.RainManage;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("rainManageService")
public class RainManageServiceImpl implements RainManageService{

    @Resource
    private RainManageMapper rainManageMapper;

    @Override
    public List<RainManage> queryAll() {
        return rainManageMapper.queryAll();
    }

    @Override
    public boolean add(RainManage rainManage) {
        boolean flag = false;
        if(rainManageMapper.add(rainManage) > 0){
            flag = true;
        }
        return flag;
    }

    @Override
    public Integer del(Integer id) {
        return rainManageMapper.del(id);
    }
}
